package com.ruoyi.biz.util;

/**
 * 响应码
 *
 * @author yusheng.liu
 * @since 2025/11/8 10:06
 */
public enum RespCode {

    SUCCESS(200, "成功"),
    PARAM_INVALID(400, "参数错误"),
    INTERVAL_ERROR(500, "内部错误"),
    CODE_INVALID(1000, "激活码非法"),
    CLIENT_INVALID(1001, "客户端非法"),
    NOT_RECROD(1002, "未找到记录"),
    EXIPRE(1003, "激活码已过期");

    private final Integer code;
    private final String msg;


    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
